package com.zjj.spring.read.xml.aop.springaop;

import java.lang.reflect.Method;

import org.springframework.aop.ThrowsAdvice;

/**
 * 对方法增强
 * @author zhuangjiajie778
 */
public class GreetingThrowAdvice implements ThrowsAdvice{
	
	public void afterThrowing(Method mentod , Object[] args , Object targer ,Exception e) {
		System.out.println("【1】 --- GreetingThrowAdvice afterThrowing : target class = " + targer.getClass().getName() +  " ---");
		System.out.println("【1】 --- GreetingThrowAdvice afterThrowing : Method name = " + mentod.getName() + " ---");
		System.out.println("【1】 --- GreetingThrowAdvice afterThrowing : args name = " + args + " ---");
		System.out.println("【1】 --- GreetingThrowAdvice afterThrowing : Exceptioin info = " + e.getMessage() + "---");
 	}

}
